package user;

import book.BookList;
import operation.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
//    一个接口数组 int[] arr;
    public User(String name){
        this.name = name;
    }
//    public void meun(){
//
//    }
   public abstract int menu();

    public void doOperation(int choice, BookList bookList){
        this.iOperations[choice].word(bookList);
        //        new ExitOperation().word();
    }

}
